// 基于template/src/views/{{appModules}}/{{pages@DEWFDYNAEDITVIEW3}}/{{spinalCase page.codeName}}-model.ts.hbs生成
import { IWFDynaEditView3Model } from "@/core/interface/view/model";
function getModel(): IWFDynaEditView3Model {
    return {
        caption: "实体工作流动态视图（分页关系）",
        title: "实体工作流动态视图（分页关系）",
        capPSLanguageRes: "DE.LNAME.IBIZSAMPLE0021",
        titlePSLanguageRes: "",
        showDataInfoBar: true,
        codeName: 'IBIZSample0021Usr1114865995WFDynaEditView3',
        uiEngineModel: [
                    {
                        name: 'toolbar_deuiaction1_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction1',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'SaveAndExit',
                        entityCodeName: '',
                    },
                    {
                        name: 'toolbar_deuiaction2_click',
                        triggerType: 'CTRLEVENT',
                        logicType: 'APPVIEWUIACTION',
                        eventNames: 'CLICK',
                        scriptCode: ``,
                        logicName:``,
                        logicTag: '',
                        eventArg: 'deuiaction2',
                        eventArg2: '',
                        timer: 0,
                        psViewCtrlName: 'toolbar',
                        uIActionTag: 'Exit',
                        entityCodeName: '',
                    }
            ],
        ctrls: [
            {
                name: 'toolbar',
                codeName: 'Usr1114865995WFDynaEditView3toolbar',
                controlType: 'TOOLBAR',
            },
            {
                name: 'form',
                codeName: 'Usr1114284368',
                controlType: 'FORM',
            },
            {
                name: 'wfform_operationform',
                codeName: 'OperationForm',
                controlType: 'FORM',
            },
            {
                name: 'drtab',
                codeName: 'DataRelation',
                controlType: 'DRTAB',
            }
        ],
        ctrlParams: {
        },
        cssName: "",
        name: "IBIZSample0021Usr1114865995WFDynaEditView3",
        viewType: "DEWFDYNAEDITVIEW3",
        viewStyle: "DEFAULT",
        showCaption: true,
        isLoadDefault: true,
        entityCodeName: "IBIZSample0021",
        keyPSAppDEField: "IBIZSample0021Id",
        majorPSAppDEField: "IBIZSample0021Name",
        expandSearchForm:false,
        toolbarItems: [
            {
          		actionLevel: '100',
          		caption: '保存并关闭',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.SAVEANDCLOSE',
          		name: 'deuiaction1',
          		showCaption: true,
          		tooltip: '保存并关闭',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.SAVEANDCLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'sx-tb-saveandclose',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'SaveAndExit',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'SaveAndExit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction1_click',
                  	actionTag: 'SaveAndExit',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_SAVEANDEXITACTION',
                  }
            },
            {
          		actionLevel: '100',
          		caption: '关闭',
          		captionLanResTag: 'TBB.TEXT.EDITVIEW.CLOSE',
          		name: 'deuiaction2',
          		showCaption: true,
          		tooltip: '关闭',
          		tooltipLanResTag: 'TBB.TOOLTIP.EDITVIEW.CLOSE',
          		itemType: 'DEUIACTION',
          		showIcon: true,
          		disabled: false,
          		cssName: '',
          		imagePath: '',
          		iconCls: 'fa fa-sign-out',
                  imagePathX: '',
          		dataAccessAction: '',
          		noPrivDisplayMode: 2,
          		uiAction: {
          			codeName: 'Exit',
          			uIActionMode: 'SYS',
          			actionTarget: '',
          			uIActionTag: 'Exit',
          			uIActionType: 'DEUIACTION'
          		},
                  logic: {
                  	name: 'toolbar_deuiaction2_click',
                  	actionTag: 'Exit',
                  	xDataCtrlName: 'form',
                  	predefinedType: 'EDITVIEW_EXITACTION',
                  }
            },
        ],
        toolbarLogics: [
            ]     ,
        xDataCtrlName: "form",
        quickSearchPlaceholder: ['订单名称',].join(","),
        useDefaultLayout: true,
        dynamicForm: [
            {
                codeName: "Usr1114284368",
                name: "form",
                logicName: "实体工作流动态视图（分页关系）_表单",
                actions: {
                    loadAction: 'Get',
                    loadDraftAction: 'GetDraft',
                    updateAction: 'Update',
                    createAction: 'Create',
                    removeAction: 'Remove',
                    wfSubmitAction: 'WFSubmit',
                    wfStartAction: '',
                }
            },
            {
                codeName: "OperationForm",
                name: "wfform_operationform",
                logicName: "操作表单",
                actions: {
                    loadAction: 'Get',
                    loadDraftAction: 'GetDraft',
                    updateAction: 'Update',
                    createAction: 'Create',
                    removeAction: 'Remove',
                    wfSubmitAction: 'WFSubmit',
                    wfStartAction: '',
                }
            },
        ],
        viewRef: [
            {
                name: "WFACTION@WFDynaActionView",
                viewName: "IBIZSample0021WFDynaActionView"
            },
            {
                name: "WFUTILACTION@ADDSTEPAFTER",
                viewName: "IBIZSample0021ADDSTEPAFTERWFDynaActionView"
            },
            {
                name: "WFUTILACTION@ADDSTEPBEFORE",
                viewName: "IBIZSample0021ADDSTEPBEFOREWFDynaActionView"
            },
            {
                name: "WFUTILACTION@REASSIGN",
                viewName: "IBIZSample0021REASSIGNWFDynaActionView"
            },
            {
                name: "WFUTILACTION@SENDBACK",
                viewName: "IBIZSample0021SENDBACKWFDynaActionView"
            },
        ],
        editItemCaption: "订单",
        tabPages: [
            {
                capPSLanguageRes: "",
                caption: "流程日志",
                viewName: "AppWFStepTraceView"
            }
        ]
    }
}
export const model = getModel();